package com.bupt.dao;

import com.bupt.bean.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator.
 */
@Mapper
public interface MenuMapper {
    //根据用户id查询用户的权限
    public List<Menu> selectPermissionByUserId(@Param("id")String userid, @Param("level")Integer level, @Param("pid")String pid);
    public List<Menu> selectAllMenus(@Param("level")Integer level, @Param("pid")String pid);

    public List<Menu> selectPermissionByRoleId(@Param("id")String roleid, @Param("level")Integer level, @Param("pid")String pid);
}
